<template>
  <div class="home">
    <el-card class="box-card item_home">
      <div slot="header" class="clearfix">
        <span>影片分类管理</span>
      </div>
      <div class="text item">
        <ul>
          <router-link :to="{ name: 'Video', query: { category: 1 } }">
            <li>电影</li></router-link
          >
          <router-link :to="{ name: 'Video', query: { category: 2 } }">
            <li>电视剧</li></router-link
          >
          <router-link :to="{ name: 'Video', query: { category: 3 } }">
            <li>动漫</li></router-link
          >
          <router-link :to="{ name: 'Video', query: { category: 4 } }">
            <li>综艺</li></router-link
          >
          <router-link :to="{ name: 'Video', query: { category: 5 } }">
            <li>纪录片</li></router-link
          >
        </ul>
      </div>
    </el-card>
    <el-card class="box-card item_home">
      <div slot="header" class="clearfix">
        <span>影片分类管理</span>
      </div>
      <div class="text item">
        <ul>
          <router-link :to="{ name: 'addVideo' }">
            <li>添加影片</li></router-link
          >
          <router-link :to="{ name: 'Search' }"> <li>搜索影片</li></router-link>
        </ul>
      </div>
    </el-card>
    <el-card class="box-card item_home">
      <div slot="header" class="clearfix">
        <span>用户管理</span>
      </div>
      <div class="text item">
        <ul>
          <router-link :to="{ name: 'User' }"> <li>用户列表</li></router-link>
          <router-link :to="{ name: 'User' }"> <li>重置密码</li></router-link>
        </ul>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "Home",
  data() {
    return {
      currentDate: new Date(),
    };
  },
  components: {},
};
</script>
<style scoped>
.item_home {
  float: left;
  margin-left: 0.2rem;
  margin-top: 0.3rem;
  width: 300px;
}
.item_home li {
  margin-bottom: 0.1rem;
  color: #409eff;
}
</style>
